Skip to content

🎨 Palette: [UX improvement] Add ARIA labels to icon-only buttons#23

Open
bobdivx wants to merge 1 commit into
devfrom
palette-ux-aria-labels-8947206614416460428
Open

🎨 Palette: [UX improvement] Add ARIA labels to icon-only buttons#23
bobdivx wants to merge 1 commit into
devfrom
palette-ux-aria-labels-8947206614416460428

Conversation

@bobdivx
Copy link
Copy Markdown
Owner

@bobdivx bobdivx commented May 10, 2026

💡 What: Added aria-label attributes to two icon-only utility buttons.
🎯 Why: To improve the screen-reader experience, as these buttons visually rely on SVG icons ("✕" or cross path) without any textual content or context.
Accessibility: Enhanced ARIA support on utility buttons conforming to accessibility standards.


PR created automatically by Jules for task 8947206614416460428 started by @bobdivx

Added `aria-label`s to the "clear filter" button in `AppLogsPage.tsx` and the modal close button in `GithubImportModal.tsx` to improve accessibility for screen readers.

Co-authored-by: bobdivx <6737167+bobdivx@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
forge Ready Ready Preview, Comment May 10, 2026 5:32pm

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves accessibility by adding aria-label attributes to icon-only buttons in AppLogsPage.tsx and GithubImportModal.tsx, and documents this standard in .Jules/palette.md. Feedback suggests further improvements to these buttons, including adding explicit type="button" attributes to prevent accidental form submissions and adjusting text colors to ensure they meet WCAG contrast requirements for better visibility.

{displayLines.length}/{lines.length}
</span>
<button onClick={() => setFilter('')} class="text-gray-600 hover:text-gray-300 text-xs">✕</button>
<button onClick={() => setFilter('')} class="text-gray-600 hover:text-gray-300 text-xs" aria-label="Effacer le filtre">✕</button>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The button is missing an explicit type="button", which is a best practice to prevent accidental form submissions. Additionally, the text-gray-600 color on the bg-gray-950 background has insufficient contrast (~2.8:1), which is below the WCAG 3:1 requirement for UI components. Using text-gray-400 (~10:1) would improve accessibility and maintain consistency with other utility buttons in this file.

Suggested change
<button onClick={() => setFilter('')} class="text-gray-600 hover:text-gray-300 text-xs" aria-label="Effacer le filtre"></button>
<button type="button" onClick={() => setFilter('')} class="text-gray-400 hover:text-gray-300 text-xs" aria-label="Effacer le filtre"></button>
References
  1. Interactive elements should meet WCAG 2.1 AA contrast requirements (at least 3:1 for UI components) to ensure visibility for users with low vision.

Importer un dépôt
</h2>
<button onClick={() => setOpen(false)} class="p-2 text-gray-400 hover:bg-gray-100 rounded-full transition-colors">
<button onClick={() => setOpen(false)} class="p-2 text-gray-400 hover:bg-gray-100 rounded-full transition-colors" aria-label="Fermer">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The button should have an explicit type="button". Furthermore, the text-gray-400 color on the light bg-gray-50 background has very low contrast (~2.0:1). Increasing it to text-gray-500 (~4.0:1) ensures it meets the WCAG 3:1 requirement for user interface components.

Suggested change
<button onClick={() => setOpen(false)} class="p-2 text-gray-400 hover:bg-gray-100 rounded-full transition-colors" aria-label="Fermer">
<button type="button" onClick={() => setOpen(false)} class="p-2 text-gray-500 hover:bg-gray-100 rounded-full transition-colors" aria-label="Fermer">
References
  1. Interactive elements should meet WCAG 2.1 AA contrast requirements (at least 3:1 for UI components) to ensure visibility for users with low vision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant